package sh.wn36.vehiclemanage.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DrivingRecord对象", description="")
public class DrivingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("CAR_ID")
    private Integer carId;

    @TableField("DEPT_ID")
    private Integer deptId;

    @JsonFormat(locale="zh",pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("BEGIN_TIME")
    private Date beginTime;

    @JsonFormat(locale="zh",pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("PRE_BACKTIME")
    private Date preBacktime;

    @JsonFormat(locale="zh",pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField("BACKTIME")
    private Date backtime;

    @TableField("PERSONNEL")
    private String personnel;

    @TableField("DRIVER_ID")
    private Integer driverId;

    @TableField("DESTINATION")
    private String destination;

    @TableField("REASON")
    private String reason;

    @TableField("START_MIL")
    private BigDecimal startMil;

    @TableField("RETURN_MIL")
    private BigDecimal returnMil;

    @TableField("THIS_MIL")
    private Double thisMil;

    @TableField("PARK_PLACE")
    private String parkPlace;

    @TableField("REMARKS")
    private String remarks;

    @TableField("CREATE_UID")
    private Integer createUid;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;

    @ApiModelProperty(value = "乐观锁")
    private Integer version;


}
